from script import base

# 导入settings环境后才能导入
from web import models


def run():
    exists = models.PricePolicy.objects.filter(title='个人免费版').exists()
    if not exists:
        models.PricePolicy.objects.create(
            category=1,
            title='个人免费版',
            price=0,
            project_num=3,
            project_member=2,
            project_space=20,
            per_file_size=5
        )
    _object = models.Transaction.objects.filter(user=13,status=1).order_by('-id').first()
    print(_object)
if __name__ == '__main__':
    run()